#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef struct jie
{
	char n;
	int i;
	jie * next;
}dian;
////
dian * init();
dian * wei(dian * p);
void jin(dian * p,char n);
dian * pre(dian * p,dian * a);
void chu(dian * p);
char topn(dian * p);
int topi(dian * p);
dian * toi(dian * p,int i);
void puti(dian * p,int i);
void putall(dian * p);
void match(char k[]);

dian * init()
{
	dian * a=NULL;
	a=(dian *)malloc(sizeof(dian));
	a->n ='#';
	a->i =0;
	a->next =NULL;
	return a;
}
dian * wei(dian * p)
{
	dian * a=p;
	while(a!=NULL&&a->next !=NULL)
	{
		a=a->next ;
	}
	return a;
}
void jin(dian * p,char n)
{
	int i=0;
	i=topi(p);
	dian * a=NULL;
	a=init();
	a->n =n;
	a->i =i+1;
	dian * b=NULL;
	b=wei(p);
	b->next =a;
}
dian * pre(dian * p,dian * a)
{
	dian * b=p;
	while(b!=NULL&&b->next !=a)
	{
		b=b->next ;
	}
	return b;
}
void chu(dian * p)
{
	dian * a=NULL;
	a=wei(p);
	dian * b=NULL;
	b=pre(p,a);
	free(a);
}
char topn(dian * p)
{
	dian * a=NULL;
	a=wei(p);
	return a->n ;
}
int topi(dian * p)
{
	dian * a=NULL;
	a=wei(p);
	return a->i ;
}
dian * toi(dian * p,int i)
{
	dian * a=p->next ;
	while(a!=NULL&&a->i !=i)
	{
		a=a->next ;
	}
	return a;
}
void puti(dian * p,int i)
{
	dian * a=NULL;
	a=toi(p,i);
	printf("%c\n",a->n );
}
void putall(dian * p)
{
	dian * a=p;
	int i=0,w=0;
	w=topi(p);
	for(i=1;i<=w;i++)
	{
		puti(p,i);
	}
}
void match(char k[])
{
	dian * head=NULL;
	head=init();
}
void main()
{
	char k[20];
	scanf("%s",k);
	match(k);
}